package com.example.lifecycledemo;

import android.app.Application;

import androidx.lifecycle.ProcessLifecycleOwner;

/**
 * @author: tuyrt7 on 2020/8/28.
 * Describe:
 */
public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        ProcessLifecycleOwner.get().getLifecycle().addObserver(new ApplicationObserver());
    }
}
